package com.sugon.modules.analyse.model.chart;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * echarts中series配置项数据模型
 *
 * @Author YuXD
 * @Version 1.0
 * @since 2023/3/1
 */
@NoArgsConstructor
@Data
public class EchartsSeriesItemModel implements Serializable {

    /**
     * 名称
     */
    private String name;

    /**
     * 类型
     */
    private String type;

    private String stack;

    /**
     * 数据
     */
    private List<BigDecimal> data;

    public EchartsSeriesItemModel(String name, String type, String stack) {
        this.name = name;
        this.type = type;
        this.stack = stack;
    }

}
